import 'package:flutter/material.dart';

main(){
  // 1. runApp
  // runApp(
  //     Center(
  //       child: Text(
  //         "hello word",
  //         textDirection: TextDirection.rtl,
  //         style: TextStyle(
  //             fontSize: 20,
  //             color: Colors.orange
  //         ),
  //       ),
  //     )
  // );
  runApp(LJHomePage());
}

/*
无状态使用 StatelessWidget
状态会发生改变 StatefulWidget
 */
class LJHomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return MaterialApp(
        home:Scaffold(
          appBar: AppBar(
            title: Center(child: Text("第一个flutter程序"),),
          ),
          body: Center(
            child: Text("hello word"),
          ),
        )
    );
  }

}